package com.spider.polymorphsm1;

public class Test {
    public static void main(String[] args) {
        //目标：认识多态的代码
        //1.对象多态，行为多态
        Animal a1 = new Wolf();
        a1.run();//方法：编译看左边，运行看右边
        Animal a2 = new Tortoise();
        a2.run();
    }
}
